package com.groupsix.mapper;

import com.groupsix.entity.Dormrepair;
import com.groupsix.entity.DormrepairExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 维修登记
 */
public interface DormrepairMapper {
    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount(@Param("dId") Integer dId, @Param("dDormbuilding") String dDormbuilding);
    //获取用户列表
    public List<Dormrepair> getDormRepairList(@Param("dId") Integer dId, @Param("dDormbuilding") String dDormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    public int addDormRepair(Dormrepair dormrepair);    //添加宿舍信息
    public int deleteDormRepair(Integer rId);   //删除宿舍信息
    public int updateDormRepair(Dormrepair dormrepair); //修改宿舍信息
    public Dormrepair findDormRepairById(Integer rId);
    public List<Dormrepair> getAll();




    int countByExample(DormrepairExample example);

    int deleteByExample(DormrepairExample example);

    int deleteByPrimaryKey(Integer rId);

    int insert(Dormrepair record);

    int insertSelective(Dormrepair record);

    List<Dormrepair> selectByExample(DormrepairExample example);

    Dormrepair selectByPrimaryKey(Integer rId);

    int updateByExampleSelective(@Param("record") Dormrepair record, @Param("example") DormrepairExample example);

    int updateByExample(@Param("record") Dormrepair record, @Param("example") DormrepairExample example);

    int updateByPrimaryKeySelective(Dormrepair record);

    int updateByPrimaryKey(Dormrepair record);
}